home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 17 / Hot Mix 17.iso / HM17_SGI / research / examples / misc / template.pro < prev    next >
Text File  |  1997-07-08  |  3KB  |  99 lines

  1. ; $Id: template.pro,v 1.1 1997/04/01 19:41:45 doug Exp $
  2. ;
  3. ; Copyright (c) 1994, Research Systems, Inc.  All rights reserved.
  4. ;    Unauthorized reproduction prohibited.
  5. ; (Of course, if you don't work for RSI, remove these lines or
  6. ;  modify to suit.)
  7. ;+
  8. ; NAME:
  9. ;    ROUTINE_NAME
  10. ;
  11. ; PURPOSE:
  12. ;    Tell what your routine does here.  I like to start with the words:
  13. ;    "This function (or procedure) ..."
  14. ;    Try to use the active, present tense.
  15. ;
  16. ; CATEGORY:
  17. ;    Put a category (or categories) here.  For example:
  18. ;    Widgets.
  19. ;
  20. ; CALLING SEQUENCE:
  21. ;    Write the calling sequence here. Include only positional parameters
  22. ;    (i.e., NO KEYWORDS). For procedures, use the form:
  23. ;
  24. ;    ROUTINE_NAME, Parameter1, Parameter2, Foobar
  25. ;
  26. ;    Note that the routine name is ALL CAPS and arguments have Initial
  27. ;    Caps.  For functions, use the form:
  28. ;    Result = FUNCTION_NAME(Parameter1, Parameter2, Foobar)
  29. ;
  30. ;    Always use the "Result = " part to begin. This makes it super-obvious
  31. ;    to the user that this routine is a function!
  32. ;
  33. ; INPUTS:
  34. ;    Parm1:    Describe the positional input parameters here. Note again
  35. ;        that positional parameters are shown with Initial Caps.
  36. ;
  37. ; OPTIONAL INPUTS:
  38. ;    Parm2:    Describe optional inputs here. If you don't have any, just
  39. ;        delete this section.
  40. ;    
  41. ; KEYWORD PARAMETERS:
  42. ;    KEY1:    Document keyword parameters like this. Note that the keyword
  43. ;        is shown in ALL CAPS!
  44. ;
  45. ;    KEY2:    Yet another keyword. Try to use the active, present tense
  46. ;        when describing your keywords.  For example, if this keyword
  47. ;        is just a set or unset flag, say something like:
  48. ;        "Set this keyword to use foobar subfloatation. The default
  49. ;         is foobar superfloatation."
  50. ;
  51. ; OUTPUTS:
  52. ;    Describe any outputs here.  For example, "This function returns the
  53. ;    foobar superflimpt version of the input array."  This is where you
  54. ;    should also document the return value for functions.
  55. ;
  56. ; OPTIONAL OUTPUTS:
  57. ;    Describe optional outputs here.  If the routine doesn't have any, 
  58. ;    just delete this section.
  59. ;
  60. ; COMMON BLOCKS:
  61. ;    BLOCK1:    Describe any common blocks here. If there are no COMMON
  62. ;        blocks, just delete this entry.
  63. ;
  64. ; SIDE EFFECTS:
  65. ;    Describe "side effects" here.  There aren't any?  Well, just delete
  66. ;    this entry.
  67. ;
  68. ; RESTRICTIONS:
  69. ;    Describe any "restrictions" here.  Delete this section if there are
  70. ;    no important restrictions.
  71. ;
  72. ; PROCEDURE:
  73. ;    You can describe the foobar superfloatation method being used here.
  74. ;    You might not need this section for your routine.
  75. ;
  76. ; EXAMPLE:
  77. ;    Please provide a simple example here. An example from the PICKFILE
  78. ;    documentation is shown below.
  79. ;
  80. ;    Create a PICKFILE widget that lets users select only files with 
  81. ;    the extensions 'pro' and 'dat'.  Use the 'Select File to Read' title 
  82. ;    and store the name of the selected file in the variable F.  Enter:
  83. ;
  84. ;        F = PICKFILE(/READ, FILTER = ['pro', 'dat'])
  85. ;
  86. ; MODIFICATION HISTORY:
  87. ;     Written by:    Your name here, Date.
  88. ;    July, 1994    Any additional mods get described here.  Remember to
  89. ;            change the stuff above if you add a new keyword or
  90. ;            something!
  91. ;-
  92.  
  93. PRO TEMPLATE
  94.  
  95.   PRINT, "This is an example header file for documenting IDL routines"
  96.  
  97. END
  98.